using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Wring : MonoBehaviour
{
    public float zoomInSpeed=0.8333f;
    public float time = 1.2f;
    public float DesTime=1.2f;
    public GameObject wring;
    public bool fllow=false;
    private GameObject player;
    // Start is called before the first frame update
    void Start()
    {
        player = GameObject.Find("Player").transform.gameObject;
        Destroy(gameObject, DesTime);
    }

    // Update is called once per frame
    void Update()
    {
        if(time>0)
        {
            wring.transform.localScale += Vector3.one * zoomInSpeed * Time.deltaTime;
            time -= Time.deltaTime;
            if (fllow == true)
            {
                transform.LookAt(player.transform);

            }
        }

     
    }
}
